package com.sky.service;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.entity.Employee;
import com.sky.result.PageResult;
import com.sky.result.Result;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    //添加员工
    void addEmployee(Employee employee);

    //分页查询
    PageResult pageSelect(EmployeePageQueryDTO employeePageQueryDTO);

    //禁用 和启用 员工
    void status(Integer status, Long id);

    //根据 id 查询 员工信息
    Employee selectId(Integer id);

    /**
     * 更新员工信息
     */
    void updateEmployee(EmployeeDTO employeeDTO);
}
